<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/common.jspf" %>

<html>
<head>


<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>


  
    <title>My JSP 'json.jsp' starting page</title>
  	<script type="text/javascript">
  		$(
	  		function(){
	  			$("#bt1").click(
	  				function(){
		  				$.post(
		  					"dept/doAjax.action",
		  					{deptId:1001,deptName:"name1001"},
		  					function(json){alert(json.deptId+"||"+json.deptName);},
		  					"json"
		  				);
		  			}
	  			);	  			
	  		}
  		);
  	
  	</script>
  
  </head>  
  <body>
 	<button id="bt1" >testJson</button> 
  </body>
</html>